package com.example.administrator.basedemos.fragment;


import android.os.Bundle;

import com.example.administrator.basedemos.R;

import java.util.ArrayList;

/**
 * 创建者     ZCL
 * 创建时间   2018/7/4 11:47
 * 描述	      ${推荐模块}
 * <p>
 * 更新者     $Author$
 * 更新时间   $Date$
 * 更新描述   {TODO}
 */
public class RecommendFragment extends BaseMarketFragment {
    private static final String TAG = "RecommendFragment";

    private ArrayList<String> mList;
    private ArrayList         mList2;


    @Override
    public int setLayoutId() {
        return R.layout.fragment_recommend;
    }

    @Override
    public void setAboutAdapter() {

    }

    @Override
    public ArrayList<String> setData() {
        mList = new ArrayList<>();
        mList.add("111");
        mList.add("222");
        return mList;
    }

    @Override
    protected ArrayList loadData(int type) {
        mList2 = new ArrayList<>();
        mList2.add("xx");
        mList2.add("22xx2");
        mList2.add("xxx");
        mList2.add("x");
        return mList2;
    }

    @Override
    protected ArrayList refreshData() {
        mList.clear();
        mList.add("1r");
        mList.add("2r");
        return mList;
    }

    @Override
    protected Bundle setBundle(Bundle bundle, int position) {
        bundle.putString("title", mList.get(position));
        return bundle;
    }

}
